<?php
namespace app\front\controller;
use app\service\AiService;

use support\Request;
use think\facade\Db;
class shequController extends Base
{
    public function index(Request $request)
    {
        $res=AiService::zhipuAIv4([
            [
                "role"=> "user",
                "content"=> "为我写一首诗"
            ]
        ]);
        $res2=AiService::xinghuoLite([
            [
                "role"=> "user",
                "content"=> "为我写一首诗"
            ]
        ]);

       s([$res,$res2]);
    }
    public function index2(Request $request)
    {
        s(555555);
    }

}
